<!--
/**************************************************
* @(#)payAlert.jsp
*
* Copyright (c) 2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/05/16, owen
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%
	ResultProcess tAccountlist = (ResultProcess)request.getAttribute("payalertlist");
	ArrayList tList = new ArrayList();
	String [] tStr = null;
%>
<html>
	<head>
		<title>应付提醒</title>
		  <META http-equiv=Content-Type content="text/html; charset=UTF-8">
          <LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
          <SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
          <SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
	      <SCRIPT language="JavaScript" src="<%=root%>/js/string.js"></SCRIPT>
		  <SCRIPT language="JavaScript">
        
		  </SCRIPT>
	</head>
	<body BGCOLOR="#f2f2f2" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<p><br>
		</p>
        <form name="kongform" method="get">
		<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td height="20">
					<table width="100%" border="0" cellspacing="0" cellpadding="1">
						<tr height="20">
							<td height="20" width="1" class="mtxt_black">&nbsp;</td>
							<td height="30" width="758" class="mtxt_black">应付提醒</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
			<td class="bg_line" height="2"></td>
			</tr>
			                <tr>
                        <%
                        if(tAccountlist != null) {
                            int totalRecords = 0;
                            if(request.getAttribute("totalRecords")!=null){
                                totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
                            }
                            int defaultPageSize =10;
                            if(request.getAttribute("pageSize")!=null){
                                defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
                            }
                            totalRecords=tAccountlist.getRecordsSize();
                        %>          
                        <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
                        <% 
                        tList = tAccountlist.getDisplayRecords(index.intValue(),pageSize.intValue());
                        %>
                        </page:pager>
                        <%
                        } %>
              </tr>
		</table>
        </form>
		<!---------------------------------------应付提醒-------------------------------------------------------->
		 <%
	                   if(tAccountlist != null){
	     %>
            <br>       
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=98% align=center border=0>
                 <tbody> 
					<tr class="bg_column" height="20">
						<td class="top" align="center" colspan="5">
							<b>应付款项列表</b>
						</td>
					</tr>
					<tr class="bg_column" height="20">
						<td class="top" align="center">
							<div align="center" class="txt_content">订货单位</div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content">费用类型</div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content">金额（元）</div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content">到期日期</div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content">联系人</div>
						</td>
						
					</tr>
                     <form name='pager' method="post">
                     <%
						 if(tList != null && tList.size() > 0){
					    	for(int i=0; i<tList.size(); i++){
						       tStr = (String[])tList.get(i);
						       String tTempStr="";
						       if(i%2==0){
						     	 tTempStr="class=\"bg_row_odd\"";
						        }else {
							     tTempStr="class=\"bg_row_even\"";
							}
					%>
					 <tr <%=tTempStr%> height=20>	
						<td class="top" align="center">
							<div align="center" class="txt_content"><%=tStr[0] %></div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content">
							<%=GSBaseManager.getCostTypeName(tStr[1]) %>
							</div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content"><%=tStr[2] %></div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content"><%=tStr[3] %></div>
						</td>
						<td class="top" align="center">
							<div align="center" class="txt_content"><%=tStr[4] %></div>
						</td>
					</tr>
				    <%
						}
					%>
					<tr class="bg_column" height="20">
						<td width="960" height="16" colspan="5" align="right">
							<!--导航条-->
							 <page:navigator type='text' queryForm="kongform"/>
						</td>
					</tr>
				   <%
						}else{
				   %>
				   <br>
							<Font color="red">没有符合条件的应付提醒信息</Font>
				   <%
						}
				   %>
				</tbody>
			</table>
			</form>
			<%} %>
		</body>
</html>
